package com.brainydroid.items;

import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.brainydroid.framework.Object;

public class Image extends Object {

	
	
	public Image(float x, float y) {
		touchable_ = false;
		setPosition(x,y);
	}
	
	public void setTxtreg(	TextureRegion tr)
	{
		addSingleFrame(tr);		
	}
	

	
	@Override
	public boolean istouch(float x,float y,float sx, float sy){
		return (x >= this.getAbsx() && x <= this.getAbsx()+this.width_ && y >= this.getAbsy() && y <= this.getAbsy()+this.height_);
	}
	
	
	@Override
	protected void onTouchDown() {
		// TODO Auto-generated method stub
	}

	@Override
	protected void onTouchUp() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onTouchLong() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void onTouchDrag(float x, float y) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void update(float deltatime) {
		// TODO Auto-generated method stub
		
	}

	

}
